widget: Change callback scope
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 28 Jul 2021 19:48:01 +0000 (21:48 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 28 Jul 2021 19:48:01 +0000 (21:48 +0200)
commitbc386c9a6047a19f1d9d1d3d996846d03ac19a74
treed0b6078c103f6af707f2381b7611133ed0482b69
parent527b2c5ab180bccfdf278479aedf298f23b72b95
widget: Change callback scope

Look who changed his mind since commit 8e2ffb3b46 :-)

The "call" scope means that the callback is only used during the
function call itself (here: gtk_widget_class_install_action()).

That's clearly wrong here, as the callback is invoked every time
the action is activated.

Arguably the "notified" scope is a better match here, where the
lack of a GDestroyNotify parameter suggests that the callback may
be used forever (which is the case here).

Related: #3498
gtk/gtkwidget.c